#include <QApplication>
#include <QMainWindow>
#include <QShortcut>

#include "ui_dicwindow.h"

int main(int argc, char** argv) {
	QApplication app(argc, argv);

	QMainWindow m;
	Ui::MainWindow mui;
	mui.setupUi(&m);

	QShortcut sc(&m);
	sc.setKey(Qt::CTRL + Qt::Key_Q);
	QObject::connect(&sc, SIGNAL(activated()), &m, SLOT(close()));

	m.show();


	return app.exec();
}
